<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
header("Access-Control-Request-Method: GET,POST,OPTIONS");

// [ 应用入口文件 ]
const _ENV_ = "local";//环境 local 本地，prod 生产
const _DOMAIN_ = "192.168.1.199";//域名或者本地ip
const _SITE_ALIAS_ = "ztcy";//项目别名

// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
define('ROOT_URL', "http://" . _DOMAIN_ . (_ENV_ == 'local' ? "/" . _SITE_ALIAS_ : '') . "/public");
define("CNAME", "合肥臻途创业投资有限公司+公众号开发 " . _SITE_ALIAS_);//客户项目名
define('PAY_URL', "http://" . _DOMAIN_ . (_ENV_ == 'local' ? "/" . _SITE_ALIAS_ : '') . "/"); //前台支付路径
define('CODE_URL', "http://" . _DOMAIN_ . (_ENV_ == 'local' ? "/" . _SITE_ALIAS_ : '') . "/public/home/Home/");

require __DIR__ . '/wechatConfig.php';//引入微信配置为文件
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';